package com.lyf.core.log.aspect;

import java.util.Date;

import com.alibaba.fastjson.JSON;

public class InfoLog {
	private int id ;
	private Date crtime = new Date();
	private Integer uid;
	private String user_name;
	private String model;
	private String name;
	private String content;
	private OptType optype;
	
	private String result ;
	
	private String exception ;  
	
	public void setException(String exception) {
		this.exception = exception;
	}
	public String getException() {
		return exception;
	}

	 

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

 
	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}
	
	

 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public InfoLog(Integer uid,String user_name, String model, String name, String content, OptType opType, String result  ) {
		super();
		this.uid = uid;
		this.user_name = user_name;
		this.model = model;
		this.name = name;
		this.content = content;
		this.optype = opType;
		this.result = result;
		 
	//	this.project_name = project_name;
	}
	
	public InfoLog() {
		// TODO Auto-generated constructor stub
	}
	
	
	
	 
	public OptType getOptype() {
		return optype;
	}
	public void setOptype(OptType optype) {
		this.optype = optype;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public Date getCrtime() {
		return crtime;
	}
	public void setCrtime(Date crtime) {
		this.crtime = crtime;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSON.toJSONString(this);
	}
	
}
